<?php
namespace app\index\widget;
use think\Controller;
use think\Db;
class Cate extends controller{
	public function header(){
		//品牌遍历
    	$brand=Db::table("brand")->select();
    	// var_dump($brand);exit;
		return $this->fetch("Cate:header",["brand"=>$brand]);
	}

	public function footer(){
		//友情链接遍历
		$links=Db::query("select linksname,linksaddress from links where status=0");
		return $this->fetch("Cate:footer",['links'=>$links]);
	}
}